//
//  ViewController.m
//  单例模式
//
//  Created by apple on 15/9/15.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "ViewController.h"
#import "Singleton.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    NSLog(@"%@",[Singleton shareManager]);
    
    NSLog(@"%@",[[Singleton alloc]init]);
    
    NSLog(@"%@",[[Singleton alloc]init]);


    // Do any additional setup after loading the view, typically from a nib.
}



- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    NSLog(@"%@",[Singleton new].text);
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
